package model;

import java.sql.Time;
import java.sql.Date;


public class Booking {
	public static final String description_colname = new String("description");
	public static final String resource_colname = new String("resource");
	public static final String sign_colname = new String("sign");
	public static final String date_colname = new String("bDate");
	public static final String time_colname = new String("bTime");

	String description = null;
	String resource = null;
	String sign = null;
	Date date = null;
	Time time = null;
	
	public Time getTime() {
		return time;
	}
	public void setTime(Time time) {
		this.time = time;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getResource() {
		return resource;
	}
	public void setResource(String resource) {
		this.resource = resource;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public java.sql.Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public void setDate(java.util.Date date) {
		// TODO: Fix the conversion here
		this.date = new Date(date.getTime());
		this.time = new Time(date.getTime());
	}
}
